package com.lcq.study.jvm.oom;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName MyOOMTest
 * @Description
 * @Author lichuanqi
 * @Date 2022/4/29 16:41
 * @Version 1.0
 **/
public class MyOOMTest {
    public static void main(String[] args) {
        List<Troublemaker> list = new ArrayList<>();
        while(true){
            list.add(new Troublemaker());
        }
    }
    static class Troublemaker {
        private long[] array;
        Troublemaker(){
            array = new long[1024];
        }
    }
}
